package com.string;

public class CheckNPE {
public static void main(String[] args) {
	String name=null;
	if(name!=null){
		doSomething();
	}
	
}
public static void doSomething(){
	String name=null;
	name=name+name.endsWith("goswami");
	System.out.println(name);
	
}
}
